<p class="<?php echo $_lang['language_prefix'] ?>title"><?php echo $_lang['install_results']?></p>
<div class="<?php echo $_lang['language_prefix'] ?>modest">
<?php
ob_start();
include "instprocessor.php";
$content = ob_get_contents();
ob_end_clean();
echo $content;

?>
<form name="install" action="index.php?action=options" method="post">
	<div id="navbar">
<?php
if ($errors == 0) {
	// check if install folder is removeable
    if (is_writable("../install")) { ?>
<span id="removeinstall" class="<?php echo $_lang['language_prefix']?>removeinstallo" onclick="var chk=document.install.rminstaller; if(chk) chk.checked=!chk.checked;"><input type="checkbox" name="rminstaller" onclick="event.cancelBubble=true;" <?php echo (empty ($errors) ? 'checked="checked"' : '') ?> style="cursor:default;" /><?php echo $_lang['remove_install_folder_auto'] ?></span>
<?php 
    } else {
?>
<span id="removeinstall" class="<?php echo $_lang['language_prefix']?>removeinstallt"><?php echo $_lang['remove_install_folder_manual']?></span>
<?php
    }
}
?></div>
		<input type="submit" value="<?php echo $_lang['btnclose_value']?>" name="cmdnext" class="<?php echo $_lang['language_prefix']?>btn" onclick="closepage(); return false;" />
	</div>
</form>
<script type="text/javascript">
/* <![CDATA[ */
function closepage(){
	var chk = document.install.rminstaller;
	if(chk && chk.checked) {
		// remove install folder and files
		window.location.href = "../manager/processors/remove_installer.processor.php?rminstall=1";
	}
	else {
		window.location.href = "../manager/";
	}
}
/* ]]> */
</script>
